package com.qiaofang.applet.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author QF2019
 */
@Data
@ApiModel("请求参数")
@NoArgsConstructor
@AllArgsConstructor
public class DataRequest<T> implements Serializable {

    private static final long serialVersionUID = -1;

    @NotNull(message = "请求参数不能为空")
    @ApiModelProperty("请求参数对象")
    @Valid
    private T param;
}
